var log = (msg) =>{console.log(msg)}
class Point {
	hello(){
		log('hello');
	}
}

var point = new Point();

log('类的数据类型: ' + typeof Point);
log('事实上，类的所有方法都定义在类的prototype属性上面 point.__proto__.hasOwnProperty :' + point.__proto__.hasOwnProperty('hello'));

//立即执行函数
let person = new class {
  constructor(name) {
      this.name = name;
	}

	sayName() {
	  console.log(this.name);
	}
}('张三');

log('立即执行函数');
person.sayName(); // "张三"

//Class不存在变量提升（hoist）必须保证子类在父类之后定义。类和模块的内部，默认就是严格模式
